package edu.ecnu.yt.spring.di.scope;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class ScopeConfig {
	@Bean
	@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
	public TestBean testBeanEq() {
		return new TestBean();
	}
	
	@Bean
	@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
	public TestBean testBeanNeq() {
		return new TestBean();
	}
	
}
